//
//  MessageDAO.h
//  express
//
//  Created by dd on 12/15/14.
//  Copyright (c) 2014 yunqi. All rights reserved.
//

#import <Foundation/Foundation.h>
#import "BaseDAO.h"

#define MESSAGE_KEY_ID                  @"id"
#define MESSAGE_KEY_MESSAGE_ID          @"message_id"
#define MESSAGE_KEY_FROM_USER_ID        @"from_user_id"
#define MESSAGE_KEY_FROM_USER_TYPE      @"from_user_type"
#define MESSAGE_KEY_TO_USER_ID          @"to_user_id"
#define MESSAGE_KEY_TO_USER_TYPE        @"to_user_type"
#define MESSAGE_KEY_TO_GROUP_ID         @"to_group_id"
#define MESSAGE_KEY_CREATED             @"created"
#define MESSAGE_KEY_ADDED               @"added"
#define MESSAGE_KEY_TYPE                @"type"
#define MESSAGE_KEY_CONTENT_TYPE        @"content_type"
#define MESSAGE_KEY_CONTENT             @"content"
#define MESSAGE_KEY_STATUS              @"status"
#define MESSAGE_KEY_READ                @"read"
#define MESSAGE_KEY_SEND                @"send"


@interface MessageDAO : BaseDAO

+ (NSNumber *)add:(NSDictionary *)msg;
+ (bool)exists:(NSNumber *)msgId;
+ (NSDictionary *)getWithId:(NSNumber *)mid;
+ (void)dump;
+ (NSNumber *)showCont;

@end
